home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / linuxdoc-sgml-1.1 / sgmls-1.1 / context.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-03  |  895 b   |  18 lines

  1. /* context.h */
  2.  
  3. #define M      pos[0].g       /* Index of current token in model. */
  4. #ifdef P
  5. #undef P
  6. #endif
  7. #define P      pos[0].t       /* Index of current group in pos. */
  8. #define G      pos[P].g       /* Index of current group in model. */
  9. #define T      pos[P].t       /* Index of current token in its group. */
  10. #define H      pos[P].h       /* Pointer to hit bits for current group. */
  11. #define GHDR   mod[G]         /* Current group header. */
  12. #define TOKEN  mod[M]         /* Current token. */
  13. #define TTYPE (GET(TOKEN.ttype, TTMASK))  /* Token type of current token. */
  14. #define TOCC  (GET(TOKEN.ttype, TOREP))   /* Occurrence for current token. */
  15. #define GTYPE (GET(GHDR.ttype, TTMASK))   /* Token type of current group. */
  16. #define GOCC  (GET(GHDR.ttype, TOREP))    /* Occurrence for current group. */
  17. #define GNUM  GHDR.tu.tnum                /* Number of tokens in current grp. */
  18.